unit Unit2;

interface

uses
 Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls;

type
  TForm2 = class(TForm)
    Button1: TButton;
    Button2: TButton;
    Label1: TLabel;
    procedure Button1Click(Sender: TObject);
    procedure Button2Click(Sender: TObject);
    procedure FormClose(Sender: TObject; var Action: TCloseAction);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form2: TForm2;

implementation

uses Unit1, MEI;

{$R *.dfm}


procedure TForm2.Button1Click(Sender: TObject);
begin
microempresa.Button7.Click;
end;

procedure TForm2.Button2Click(Sender: TObject);
begin
microempresa.Button6.Click;
end;

procedure TForm2.FormClose(Sender: TObject; var Action: TCloseAction);
begin
microempresa.Button8.click;
end;

end.
